import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ArticleItem from '@/components/ArticleItem'

// ------------------------ 完整导入使用Vant ------------------------
import Vant from 'vant'
import 'vant/lib/index.css'
import 'vant/lib/index.less'
Vue.use(Vant)

// ----------------------- 自动按需导入使用Vant ----------------------
// import { Button, Swipe, SwipeItem } from 'vant'
// // import { Swipe, SwipeItem } from 'vant'

// Vue.use(Button)
// Vue.use(Swipe)
// Vue.use(SwipeItem)

Vue.component('ArticleItem', ArticleItem)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
